package com.xiaoh.compare.bo;

import java.io.Serializable;

/**
 * @author xiaoH
 * @date 2020/5/8
 * @description
 */
public class CompareMo implements Serializable {

    private String fromFileName;
    private String toFileName;
    private Integer id;
    private String type;
    private String oldText;
    private String newText;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getOldText() {
        return oldText;
    }

    public void setOldText(String oldText) {
        this.oldText = oldText;
    }

    public String getNewText() {
        return newText;
    }

    public void setNewText(String newText) {
        this.newText = newText;
    }
//	public CompareMo(int i, String oldLine, String newLine, String tag) {
//		// TODO Auto-generated constructor stub
//		this.id = i;
//		this.type = tag;
//		this.oldText = oldLine;
//		this.newText = newLine;
//	}


    public CompareMo(String oldLine, String newLine, String tag) {
        // TODO Auto-generated constructor stub

        this.type = tag;
        this.oldText = oldLine;
        this.newText = newLine;
    }


    public String getFromFileName() {
        return fromFileName;
    }

    public void setFromFileName(String fromFileName) {
        this.fromFileName = fromFileName;

    }

    public CompareMo() {
        super();
    }

    public String getToFileName() {
        return toFileName;
    }

    public void setToFileName(String toFileName) {
        this.toFileName = toFileName;
    }


    @Override
    public String toString() {
        return "CompareMo [fromFileName=" + fromFileName + ", toFileName=" + toFileName + ", id=" + id + ", type="
                + type + ", oldText=" + oldText + ", newText=" + newText + "]";
    }
}
